package cn.wolfcode.wolf2w.domain;


import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 区域
 */
@Setter
@Getter
@Document("thee")
@ToString
public class Thee extends BaseDomain {
    private String name;
    private String number;
    private String picture;
    private List<String> intro;
    private String tel;
    private String web;
    private String time;
    private List<String> travel;
    private List<String> tick;
    private List<String> openTime;


    public String getJsonString(){
        Map<String, Object> map = new HashMap<>();
        map.put("id",super.getId());
        map.put("name",name);
        map.put("number",number);
        map.put("picture",picture);
        map.put("intro",intro);
        map.put("tel",tel);
        map.put("web",web);
        map.put("time",time);
        map.put("travel",travel);
        map.put("tick",tick);
        map.put("openTime",openTime);
        return JSON.toJSONString(map);
    }
}
